package com.pojo;

import java.util.Date;

public class Passport {
    private int id;
    private String nationality;
    private Date expire;
    private int passenger_id;

    public Passport() {
    }

    public Passport(int id, String nationality, Date expire, int passenger_id) {
        this.id = id;
        this.nationality = nationality;
        this.expire = expire;
        this.passenger_id = passenger_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public int getPassenger_id() {
        return passenger_id;
    }

    public void setPassenger_id(int passenger_id) {
        this.passenger_id = passenger_id;
    }

    @Override
    public String toString() {
        return "Passport{" +
                "id=" + id +
                ", nationality='" + nationality + '\'' +
                ", expire=" + expire +
                ", passenger_id=" + passenger_id +
                '}';
    }
}
